package com.bw.zg3park2212.adpter

import android.widget.CheckBox
import com.bw.base.entity.PaylerEntityItem
import com.bw.zg3park2212.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class PaylerXiangAdpter:BaseQuickAdapter<PaylerEntityItem,BaseViewHolder>(R.layout.item_payler_xiang) {
    override fun convert(helper: BaseViewHolder, item: PaylerEntityItem) {
        helper.setText(R.id.paydetail_type,item.chargeType)
        helper.setText(R.id.paydetail_time,item.paymentTime)
        helper.setText(R.id.paydetail_money,"¥:"+item.chargeAmount)
        val checkBox = helper.getView<CheckBox>(R.id.paydetail_cb)
        checkBox.isChecked=item.idChecked
    }
}